home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / BARNET / FREENET / PEAD / POP099 / !POP / !Help < prev    next >
Text File  |  1997-03-08  |  19KB  |  500 lines

  1. !POP Version 0.997
  2. ====
  3.  
  4. !POP is a POP3 mail transport for use with Freenet/Acorn TCP/IP.  It will
  5. fetch EMAIL from one or more POP mailboxes and can also send outgoing
  6. EMAIL (using SMTP).
  7.  
  8. POP is only a transport - unless you are a massochist you will also need
  9. some mail management/reading software.  Newsbase and TTFN are recommended.
  10. !POP stores its mailboxes in standard formats, so other packages may work.
  11.  
  12. Contents
  13. ========
  14. Terms & Conditions
  15. Credits
  16. Features
  17. Requirements
  18. Installation
  19. Configuring from within Newsbase
  20. Use with ANT Internet Suite
  21. POP Users & Mailboxes
  22. POP Settings
  23. In Use - Checking Mail
  24. Sending Mail
  25. BIG DISCLAIMER ON PASSWORD SECURITY!  <<<<<<< READ
  26. What are POP and SMTP?
  27. External Interface
  28.  
  29. Terms & Conditions
  30. ==================
  31.  
  32. (c) Daniel Pead, 1997
  33.  
  34. !POP may be used and copied freely under the following conditions:
  35.  
  36. 1. It is supplied with this copyright notice intact.
  37. 2. No charge may made for supplying it. It may NOT, for example, be
  38. distributed on magazine cover discs, PD library discs or bundled with a
  39. commercial product without explicit permission from me.  It may not be
  40. placed on bulletin boards or internet archives which charge a subscription
  41. or use premium rate telephone numbers.
  42. 3. Anybody using this software must accept that it is supplied, free-of-
  43. charge, with no warranty for reliability, accuracy or fitness-for-
  44. purpose.  It is the user's responsibility to satisfy themselves that this
  45. software is sufficiently reliable for their intended purposes. (There -
  46. some firms make you PAY for a waiver like that!)
  47.  
  48. Contact
  49. =======
  50.  
  51. Dan@OctPen.Demon.co.uk
  52. http://www.octpen.demon.co.uk/
  53.  
  54. Credits
  55. =======
  56.  
  57. Andy Mell - for !NetLib
  58. Graham Allan - for Newsbase; the "Sendmail" code and testing.
  59. Stuart Brodie - for socket libraries used in early development
  60. Tom Hughes - for Freenet
  61.  
  62. ... and everybody else who helped out with testing.
  63.  
  64. Features
  65. ========
  66.  
  67. * Almost everything is set up from dialogue boxes
  68. * Can check mail for multiple users & hosts
  69. * Mail can be left on the server (useful for checking
  70.   'work' email from home)
  71. * Messages over a certain length can be trapped and skipped or just the
  72.   message
  73.   header downloaded.  The full message can be fetched or deleted later.
  74. * Runs largely in 'background' mode and doesn't lock up your machine
  75.   while waiting for the server to respond.
  76. * Includes links to Newsbase.
  77.  
  78. Requirements
  79. ============
  80.  
  81. * RISC-OS 3.1 or later
  82. * 4MB RAM and a hard disc (the minimum for using internet, really)
  83. * Acorn TCP/IP or Freenet (NOT !TCPIP/KA9Q)
  84. * Newsbase (V0.54 or later) and !TTFN. See the note below for use with
  85.   Newsbase 0.55.
  86.  
  87. If you are using Acorn TCP/IP then it is a good idea to also install the
  88. 'InetDB' part of Freenet, which handles address lookups.  Otherwise you
  89. must add the internet address of your mail server(s) to !Internet.files.
  90. hosts.
  91.  
  92. Installation
  93. ============
  94.  
  95. Summary:
  96.  
  97. 1. Install Freenet or Acorn !Internet. (Non trivial! Here's one I prepared
  98. earlier...)
  99.  
  100. 2. Copy !POP, !Newsbase, !TTFN etc. to your hard disc.
  101.  
  102. 3. Copy the POP transport definitions into Newsbase - the program
  103. "NBInstall" in the POP distribution will do this for you.  ** Use
  104. NB055Inst if you have Newsbase 0.55 **
  105.  
  106. 4. Either re-start the computer or run the !Boot files within !POP and
  107. !Newsbase so that they can find one another...
  108.  
  109. 5. Configure Newsbase first - Newsbase has extensive on-line help.
  110.  
  111. 6. Run !POP and review the contents of the "Settings" dialogue box. !POP
  112. should have got sensible defaults for most of this from Newsbase.
  113.  
  114. 7. Bring up !POPs "Users" dialogue and add the details of the POP
  115. mailboxes you wish to check. Again - if you added users when you set up
  116. Newsbase this should already be mostly done.
  117.  
  118. 8. Hook up to Internet and choose 'Check Mail' from the !POP menu...
  119.  
  120. Configuring from within Newsbase
  121. ================================
  122.  
  123. !POP has its own setup dialogues, but it can obtain some of its settings
  124. automatically from Newsbase's system variables, so you'll save time if you
  125. set up Newsbase before running !POP.
  126.  
  127. 1. Site settings:
  128.  
  129.    Host/domain: !POP doesn't use these  - best set up manually.
  130.  
  131.    Mailname: The name of your POP server (usually the part of your
  132.              EMAIL address following the '@')
  133.    Remote:   The name of your SMTP gateway machine (often the same
  134.              as above.
  135.  
  136.    If this is incompatible with other transports then leave these as is and
  137.    override the defaults from within !POP.
  138.  
  139. 2. Users
  140.  
  141. !POP maintains its own list of usernames, passwords and POP servers. If
  142. you add or delete users from within Newsbase they will also be added or
  143. deleted from !POP's list. You can't set POP passwords or specify POP
  144. servers other than the one supplied in 'Mailname' above from Newsbase,
  145. though.
  146.  
  147. 3. Transports:
  148.  
  149. *   If you want to send outgoing mail via !POP's SMTP transport then set
  150.     the 'Default mail transport' to 'POP'.
  151.  
  152. *   Select "Transport properties for -> POP" and turn on "Check for
  153.     Arrivals".
  154.  
  155. *   Click on 'Setup' - this should start !POP and bring up the POP settings
  156.     dialogue box.  Or you could just double-click on !POP if you like...
  157.     Unless you have a complex set-up you can probably take the defaults
  158.     here and go on to check the User & Mailbox list.
  159.  
  160. Use with ANT Internet Suite
  161. ===========================
  162.  
  163. If you have the ANT Internet Suite *release 1* then you can use !POP to fetch and send the mail instead of ANT's POP fetcher, gaining the ability to screen out large/previously read messages and check your mail at regular intervals.  The mailbox files created by !POP are compatible with Marcel.
  164.  
  165. Set !POPs incoming mail file name (in the settings dialogue) to:
  166.  
  167.     Inet:Spool.mail.default
  168.  
  169. and also set the 'Queue directory' to:
  170.  
  171.     Inet:spool.mqueue
  172.  
  173. ** !POP will NOT send outgoing mail from the version of Marcel supplied with
  174. ** Release 2 of the ANT suite, nor has the use of !POP to fetch mail for
  175. ** Release 2 been tested - these instructions may not apply.
  176.  
  177. Of course - if you DON'T want to use Marcel, the usual !POP/Newsbase/TTFN
  178. combination is fully compatible with the ANT Internet Suite.
  179.  
  180. POP Users & Mailboxes 
  181. =====================
  182.  
  183. Choose "Users..." from the !POP iconbar menu.
  184.  
  185. !POP can check a list of mailboxes on several different machines.  Given
  186. that, this dialogue should be pretty obvious...
  187.  
  188. If you are using Newsbase then you should add new users to Newsbase
  189. *first* (this will also add them to !POP) then bring up the !POP dialogue
  190. to fill in missing details.
  191.  
  192. User:
  193.     The username (e.g. "fbloggs" if address is "fbloggs@wibble.co.uk").  If
  194.     the name you enter is not valid as a RISC-OS file name - such as
  195.     'fred.bloggs', !POP will turn on the 'Mail file name' option (below) and
  196.     suggest an alternative mail file name.
  197.  
  198. Host:
  199.     The hostname (e.g. "wibble.co.uk")
  200.  
  201. Password:
  202.     The password for this mailbox.  If you leave this blank then !POP will
  203.     prompt for it when you next 'check mail'. See the notes on security
  204.     elsewhere in this document.
  205.  
  206. Keep Password:
  207.     If this is selected, !POP will remember the password for this user
  208.     between checks.  The password is also stored on disc if you click 'Save'.
  209.     See the note on "Security" later.
  210.  
  211. Leave Mail on Server:
  212.     If this is selected, then mail messages will NOT be deleted from the
  213.     POP server after downloading. Useful if you don't quite trust POP or if
  214.     you are reading mail from several different machines (see "Skip...
  215.     Previously read" below)
  216.     
  217. Mail File Name:
  218.      Normally, the file 'leaf' name of the incoming mail file created by !POP
  219.      is the same as the username.  Turn on the 'Mail File Name' check-box and
  220.      enter a name here to use a different name.
  221.  
  222.      Use this if your username is not valid as a filename (see above) or if
  223.      you want to 'forward' mail for this user to another mail box.
  224.  
  225. No auto-check:
  226.      If you turn this on then this user's mail will only be checked when you
  227.      explicitly choose it from the 'Check mail' submenu.
  228.  
  229. Ignore LAST:
  230.      !POP v0.99 and later use the LAST command on the POP3 server to speed
  231.      up skipping of previously read messages.  I've a sneaking suspicion
  232.      that this will cause problems for some people (the RFC document for
  233.      POP3 is very woolly about how LAST works anyway) so here's a button
  234.      to disable it on a per-user basis.  This is only relevant if
  235.      'Skip... Previously read' is ON and 'Confirm skips' is OFF in the
  236.      Settings dialogue.
  237.  
  238. Save:
  239.     Saves the settings to disc.
  240.  
  241. Cancel:
  242.     *Only* cancels changes to the currently displayed user.  Any previous
  243.     changes are permanent.
  244.  
  245. NOTE:
  246.     If you add or modify users from within Newsbase, the !Pop.Users file on
  247.     disc is modified. !POP re-loads this if it notices that it has been
  248.     updated - this may cancel any changes which have been made in !POP since
  249.     the file was last saved.
  250.  
  251.  
  252. POP Settings
  253. ============
  254.  
  255. The !POP settings dialogue box will appear the first time you run !POP.
  256. You can also get this by choosing "Settings" from the !POP iconbar menu or
  257. hitting 'Setup' from the Newsbase transports control.
  258.  
  259. Skip messages:
  260.  
  261.     This allows you to avoid downloading huge files or messages that have
  262.     already been read. For large messages, !POP will get just the header so
  263.     that you can check the sender and subject before downloading the whole
  264.     thing.
  265.  
  266.     The "Confirm" option causes POP to bring up a "Delete/Skip/Download/Get
  267.     Header" dialogue box (including the subject, sender and length)
  268.     whenever it encounters a long/previously read message. (This only happens
  269.     if you selected 'check mail' from the menu - on a timed check the message is
  270.     still skipped).
  271.  
  272.     If your POP server does not support the "TOP" command then you will not be
  273.     able to get headers or preview the sender and subject.
  274.  
  275.     If 'Previously Read' is ON and 'Confirm' is OFF, !POP uses the POP3 command
  276.     LAST to find the first unread message.  If 'Confirm' is ON (or if LAST
  277.     fails) the !POP looks for the 'Status:' messages typically inserted by
  278.     POP servers to flag previously read messages.  This may not work with
  279.     all servers.
  280.  
  281. Check mail:
  282.  
  283.      While !POP is running, it can make regular checks for new mail.  (If you
  284.      have a dialup connection then these should fail peacefully while you are
  285.      not connected).  When making a timed check !POP will surpress certain
  286.      prompts for user intervention (like the 'confirm' dialogue above) and take
  287.      sensible defaults.  You can only do timed checks for users with a stored
  288.      password. Errors are sent to the log file.
  289.  
  290.      The 'Use TOP 1 not TOP 0' option circumvents a bug in some POP servers
  291.      which returns garbage for the 'TOP 0' command.  This is one to try if
  292.      !POP is not working for you.
  293.  
  294. Show Progress:
  295.  
  296.     Brings up a dialogue box which monitors the progress of POP and SMTP
  297.     transactions.
  298.  
  299. Incoming Mail file(s) & Format:
  300.  
  301.     Specifies where the incoming mail is stored. You can include a '*' in
  302.     this which will be replaced by the current user name.
  303.     
  304.     Normally, mail is stored in one file per user with the start of each message
  305.     marked by the line "From <user> <date>" - a fragile but widely used format
  306.     usually refered to as "Berkeley Mailbox".
  307.     Three other formats are available:
  308.  
  309.     "Rmail" - messages are delimeted by "#RMail <length>" - this may improve
  310.     the speed of the mail reader.
  311.  
  312.     "Ctrl-A" - messages are seperated by Ctrl-A characters
  313.  
  314.     "Debatch" - each user's mailbox is a directory containing seperated
  315.     messages in numbered files.  Probably not much use just yet (it is also
  316.     subject to the dreaded 77 file limit).
  317.  
  318.     Newsbase users should probably stick to "Berkeley" or "RMail" format.
  319.  
  320. Outgoing mail (SMTP) gateway address:
  321.  
  322.     The internet address of the machine via which all outgoing mail is
  323.     sent. If you leave this blank then !POP uses the destination supplied in
  324.     each messages' control file (although this feature is untested).
  325.  
  326. Outgong mail queue directory:
  327.  
  328.     The directory containing the outgoing mail queue :-)
  329.  
  330. Send queued mail automatically:
  331.  
  332.    If this is on, !POP checks for mail waiting to be sent every 20 seconds
  333.    or so, and sends anthing it finds (provided you are on-line).
  334.  
  335. No icon:
  336.  
  337.    !POPs contribution to the Internet icon bar congestion problem.  You
  338.    can get the icon back by double-clicking on the !POP application again.
  339.  
  340. Timeout:
  341.  
  342.    Sets how long !POP will wait for a response from the server.  Increase
  343.    this if you have a sluggish server.  In 'attended' mode, a 'Retry/Abort'
  344.    dialogue appears when the time is up.  In unattended mode, !POP allows
  345.    2 retries, i.e. it the timout is effectively 3 times as long.
  346.  
  347. In Use
  348. ======
  349.  
  350. Checking Mail
  351. -------------
  352.  
  353. Run !POP and select "Check Mail" from the iconbar menu.  !POP will work
  354. through all the defined mailboxes checking for new arrivals.  You can
  355. check a specific mailbox by choosing one from the "Check Mail" submenu.
  356.  
  357. If any users do not yet have passwords you will be asked for these when
  358. POP comes to check their mailboxes.
  359.  
  360. If POP is set up to skip long or previously read messages, and the
  361. 'confirm' option is set then, when such a message is encountered, you will
  362. be asked if you whish to download the message; download just the header;
  363. skip the message or simply delete it.
  364.  
  365. !POP won't actually tell you you have new mail unless you have the 'Show
  366. Progress' option set. However, if Newsbase is running it will catch on
  367. within 10 seconds or so and sort & announce the mail.
  368.  
  369. POP can be set up to check mail at regular intervals. When doing a regular
  370. check, POP will not interrupt you with "Skip/Download/Delete" prompts,
  371. error messages or requests for passwords:  Old messages will be skipped;
  372. only the headers of large messages will be fetched; errors written to the
  373. logfile and mailboxes without passwords will not be checked.
  374.  
  375. If you don't want to leave !POP running, it may be possible to use a
  376. program such as !Alarm to check mail by issuing a command such as:
  377.  
  378.    *wimptask POP -in -quit
  379.  
  380. Sending Mail
  381. ------------
  382.  
  383. When you send a message using TTFN/Newsbase then the outgoing message is
  384. written to !POPs queue.  Pop checks this every 20 seconds or so while the
  385. network is live and will send out any messages it finds.  If you can't
  386. wait 20 seconds then choose "Send Queued" from the !POP menu.
  387.  
  388. As with checking mail - POP only reports errors on screen if you chose
  389. "Send Queued" manually - otherwise, errors are written to the log file.
  390.  
  391. An external application can start POP and send outgoing mail with:
  392.  
  393.    *wimptask POP -out -quit
  394.  
  395.  
  396. BIG DISCLAIMER ON PASSWORD SECURITY!
  397. ====================================
  398.  
  399. !POP stores passwords on disc in a scrambled form.  IMHO this is 100%
  400. better than having them in plain text, but please DO NOT overestimate the
  401. security this offers.  Since !POP has to be able to decode these passwords
  402. and send them to the server - at which stage they can easily be
  403. intercepted - there seems to be little point in using 'strong' encryption
  404. (using a password to encrypt your password seems to defeat the object
  405. anyway - if you disagree move the 'users' file to a DES-encrypted SparkFS
  406. archive).
  407.  
  408. For users without the 'Keep Password' option, !POP does not store the
  409. password between checks.  However, I would not like to guarantee that the
  410. password could not be fished out of somewhere in RAM with a memory editor.
  411.  
  412.  
  413. What are POP and SMTP?
  414. ======================
  415.  
  416. SMTP is the protocol used to exchange EMAIL on the internet - it is not
  417. particularly suitable for getting mail to personal computers because:
  418.  
  419. (a) They are often switched off or disconnected from the net.
  420. (b) PCs often have no fixed network address - they may get
  421.     allocated a different address each time they connect.
  422. (c) What if your main PC is at work, but you sometimes want to
  423.     dial in and check your mail from home...?
  424.  
  425. With POP (Post Office Protocol) your mail arrives at a mailbox on a
  426. central server run by your Internet provider, much like the bad old days
  427. when you had to log in from a terminal and type 'mail' to see it. POP
  428. allows your PC to log in automatically, collect any new mail and log
  429. out.   
  430.  
  431. Standard POP has no facilities for SENDING mail - outgoing mail is sent
  432. using SMTP to a 'mail gateway' (often the same machine that holds your POP
  433. mailbox).
  434. It's much easier to send SMTP mail than to receive it.
  435.  
  436. Note - some Internet providers, showing great foresight also use "PoP" as
  437. an acronym for "Point of Presence". This has nothing to do with POP.
  438.  
  439. External Interface
  440. ==================
  441.  
  442. This section is rather crypric, but might help people wanting to tweak the
  443. Newsbase transport definitions or use a different mailreader.
  444.  
  445. Directory and File names
  446. ------------------------
  447.  
  448. ... Kept in !POP.!Defaults.  Currently set up to take sensible values from
  449. Newsbase.
  450.  
  451. Outgoing Mail
  452. -------------
  453.  
  454. Same format as KA9Q - numbered text and work files, 'sequence' file with
  455. the last number used in.
  456.  
  457. User Admin
  458. ----------
  459.    POPadmin adduser -u <user> -h <host> [-p <pass>] [-l(eave mail)]
  460.             [-k(eep pass)]
  461.    POPadmin moduser -u <user> -h <host> [-p <pass>] [-l(eave mail)]
  462.             [-k(eep pass)]
  463.    POPadmin deluser -u <user> [-h <host>]
  464.  
  465. (In the last case, if host is supplied, both user and host much match).
  466.  
  467. This updates the users file - !POP checks the time stamp on this and re-
  468. loads it before performing the next operation.
  469.  
  470. POP control
  471. -----------
  472.  
  473. *wimptask POP [-in] [-out] [-chpass <user>] [-setup] [-setusers] [-quit]
  474.           [-user <user>] [-save] [-attended]
  475.  
  476. If !POP is not running this command will start it.  Otherwise, it sends a
  477. message to the running !POP task (by the rather nonstandard method of
  478. briefly starting a dummy WIMP task with the command in the task name...
  479. saves getting message number allocations!) The qualifiers are as follows:
  480.  
  481. -in     Check all users POP mailboxes for incoming mail
  482. -out    Deal with any outgoing mail
  483. -chpass <user>
  484.         Prompt for the POP password for <user>
  485. -setup  Open the main configuration dialogue box
  486. -setusers
  487.         Open the user setup dialogue box
  488. -quit   After performing the requested actions, quit !POP
  489. -user <user>
  490.         Used with '-in' : Just check mail for <user>
  491.         Used with '-setusers' : Go directly to the specified user
  492. -save   Used with '-setup' or '-setusers' this saves the new settings to
  493.         disc as soon as you hit OK (useful with -quit).
  494. -attended
  495.         Used with '-in' or '-out' this performs the operation in 'attended'
  496.         mode. Default is 'unattended'
  497. -hide   Hides the !POP iconbar icon
  498. -show   Shows the !POP iconbar icon
  499.  
  500.